//
//  HR_Touch_TestCell.m
//  Pods
//
//  Created by duanhuifen on 2017/7/24.
//
//

#import "HR_Touch_TestCell.h"

@implementation HR_Touch_TestCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self)
    {
        self.headerImageView=[[UIImageView alloc]initWithFrame:CGRectMake(10,10, 50, 50)];
        self.headerImageView.image=[UIImage imageNamed:@"头像"];
        [self.contentView addSubview:self.headerImageView];
        
        self.zanBtn = [[UIButton alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.headerImageView.frame)+100,20,60,30)];
        self.zanBtn.backgroundColor=[UIColor clearColor];
        self.zanBtn.titleLabel.font=[UIFont systemFontOfSize:16];
        [self.zanBtn setTitle:@"赞" forState:UIControlStateNormal];
        [self.zanBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        self.zanBtn.tag=100;
        self.zanBtn.layer.borderColor=[UIColor blackColor].CGColor;
        self.zanBtn.layer.borderWidth=1;
        [self.contentView addSubview:self.zanBtn];
        
        self.commentBtn = [[UIButton alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.zanBtn.frame)+20,20,60, 30)];
        self.commentBtn.backgroundColor=[UIColor clearColor];
        self.commentBtn.tag=101;
        [self.commentBtn setTitle:@"评论" forState:UIControlStateNormal];
        [self.commentBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        self.commentBtn.titleLabel.font=[UIFont systemFontOfSize:16];
        self.commentBtn.layer.borderColor=[UIColor blackColor].CGColor;
        self.commentBtn.layer.borderWidth=1;
        [self.contentView addSubview:self.commentBtn];
    }
    
    return self;
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
